import 'package:get/get.dart';
import 'package:nvshortvideo/nvshortvideo.dart';
import 'package:vischat/core/config/app_config.dart';
import 'package:vischat/core/utils/jverify.dart';

class SplashController extends GetxController {
  final NvVideoOperator _nvVideoOperator;
  SplashController(this._nvVideoOperator);

  final String launchImage = 'assets/images/launch_image.png'; // 启动图
  final int countdown = 3;

  @override
  void onInit() {
    _initApp();
    super.onInit();
  }

  /// 初始化
  void _initApp() async {
    _nvVideoOperator.configServerInfo(AppConfig.NvShortConfig); // 初始化美摄sdk
    await JverifyUtil.initPlatformState(); // 极光认证初始化
  }
}
